package com.xiaotao.es.domain.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 文档基础表
 * @TableName wen_dxx
 */
@TableName(value ="core.wen_dxx")
@Data
public class Document implements Serializable {
    @TableId(value = "id",type = IdType.AUTO)
    private String id;

    /**
     * 书名
     */
    @TableField(value = "mingc")
    private String mingc;

    /**
     * 期刊
     */
    @TableField(value = "qik")
    private String qik;

    /**
     * 来源
     */
    @TableField(value = "laiy")
    private Integer laiy;

    /**
     * 作者
     */
    @TableField(value = "zuoz")
    private String zuoz;

    /**
     * 上传时间
     */
    @TableField(value = "shangcsj")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime shangcsj;

    /**
     * 字数
     */
    @TableField(value = "zis")
    private Long zis;

    /**
     * 拥有者
     */
    @TableField(value = "user_id")
    private Long userId;

    /**
     *
     */
    @TableField(value = "deleted")
    private String deleted;

    /**
     *
     */
    @TableField(value = "create_time")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;

    /**
     *
     */
    @TableField(value = "update_time",fill = FieldFill.UPDATE)
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime updateTime;

    /**
     * 上传路径
     */
    @TableField(value = "shangclj")
    private String shangclj;

    /**
     * 笔记时间
     */
    @TableField(value = "bijsj")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime bijsj;

    /**
     * 标注时间
     */
    @TableField(value = "biaozsj")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime biaozsj;

    /**
     * 摘要时间
     */
    @TableField(value = "zhaiysj")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime zhaiysj;

    /**
     * 类型 0-开放 1-不开放
     */
    @TableField(value = "haskaif")
    private Integer haskaif;

    /**
     * 出版社
     */
    @TableField(value = "chubs")
    private String chubs;
    @TableField(value = "origin_book_id")
    private String originBookId;
    
    @TableField(value = "fbsj")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime fbsj;
    @TableField(value = "ling_y")
    private String lingY;

    /**
     * 文档上传qwen返回的id
     */
    @TableField(value = "file_id")
    private String fileId;


    /**
     * PDF解析出来的文本
     */
    @TableField(value = "doc_text")
    @JsonIgnore
    private String docText;


    private String transPdfPath;


    @TableField(value = "create_by", fill = FieldFill.INSERT)
    private String createBy;
    @TableField(value = "update_by", fill = FieldFill.UPDATE)
    private String updateBy;
}
